import { Component } from '@angular/core';
import { Observable } from 'rxjs';
import { ExtendModule } from 'src/app/models/module';
import { ModuleService } from 'src/app/services/module.service';
import { Route } from '@angular/router';
import { RouterService } from 'src/app/services/router.service';

@Component({
    selector: 'coeus-plugins-container',
    templateUrl: './plugins-container.component.html',
    styleUrls: ['./plugins-container.component.scss']
})
export class PluginsContainerComponent {

    constructor(
        private moduleService: ModuleService,
        private routerService: RouterService
    ) { }

    get installedModules(): Observable<ExtendModule[]> {
        return this.moduleService.installedModules$;
    }
    get existingRoutes(): Observable<Route[]> {
        return this.routerService.existingRoutes;
    }
}
